<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- 4:参数值，只想接收3和5这2个值 也就是解析返回的3和5，其他的不做输出. 使用解析赋值.

          function f(){
          return [1,3,5,7];
          }
    -->
</body>

</html>
<script>
    function f() {
        return [1, 3, 5, 7];
    }

    let [,a,b,] = f();
    console.log(a,b);

</script>